package com.littcore.saap.core.event;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

public class BaseEvent {
	

	
	
	public int getTenantId() {
		return tenantId;
	}



	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}



	private int tenantId;

	/**
	 */
	private int opBy;

	/**
	 */
	private String opUserName;

	/**
	 */
	private Date opDatetime;
	
	
	/**
	 * 功能编号.
	 */
	private String funcCode;
	
	/**
	 * 模块编号
	 */
	private String moduleCode;
	
	
	private int recordId;
	
	
	
	private Map<String,Object>  datas;
	

	
	

	public BaseEvent() {
		super();
	}

	

	public BaseEvent(String moduleCode, String funcCode, int recordId, int opBy, Date opDatetime) {
		super();
		this.moduleCode = moduleCode;
		this.funcCode = funcCode;
		this.recordId = recordId;
		this.opBy = opBy;
		this.opDatetime = opDatetime;
		this.datas=new LinkedHashMap<String,Object>();
	}



	public BaseEvent(String moduleCode, String funcCode, int recordId, int opBy, Date opDatetime, int tenantId) {
		super();
		this.moduleCode = moduleCode;
		this.funcCode = funcCode;
		this.recordId = recordId;
		this.opBy = opBy;
		this.opDatetime = opDatetime;
		this.tenantId = tenantId;
		this.datas=new LinkedHashMap<String,Object>();
	}



	public String getModuleCode() {
		return moduleCode;
	}

	public void setModuleCode(String moduleCode) {
		this.moduleCode = moduleCode;
	}


	public int getOpBy() {
		return opBy;
	}

	public void setOpBy(int opBy) {
		this.opBy = opBy;
	}

	public String getOpUserName() {
		return opUserName;
	}

	public void setOpUserName(String opUserName) {
		this.opUserName = opUserName;
	}

	public Date getOpDatetime() {
		return opDatetime;
	}

	public void setOpDatetime(Date opDatetime) {
		this.opDatetime = opDatetime;
	}




	public String getFuncCode() {
		return funcCode;
	}

	public void setFuncCode(String funcCode) {
		this.funcCode = funcCode;
	}

	public int getRecordId() {
		return recordId;
	}

	public void setRecordId(int recordId) {
		this.recordId = recordId;
	}



	public Map<String, Object> getDatas() {
		return datas;
	}



	public void setDatas(Map<String, Object> datas) {
		this.datas = datas;
	}







	
	
	
	

}
